package com.molyfun.parents.dao.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by william(liuchao.hit@gmail.com).
 * Date:12/20/16.
 */
@Entity
public class CourseDB {
    @Id
    private Long id;
    //日期，课程首页离线模式需要根据日期获取课程, 2016-06-06
    @Unique
    private String dateStr;

    private String jsonStr;

    private String summary;

    public String getSummary() {
        return this.summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getJsonStr() {
        return this.jsonStr;
    }

    public void setJsonStr(String jsonStr) {
        this.jsonStr = jsonStr;
    }

    public String getDateStr() {
        return this.dateStr;
    }

    public void setDateStr(String dateStr) {
        this.dateStr = dateStr;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Generated(hash = 515616291)
    public CourseDB(Long id, String dateStr, String jsonStr, String summary) {
        this.id = id;
        this.dateStr = dateStr;
        this.jsonStr = jsonStr;
        this.summary = summary;
    }

    @Generated(hash = 1140258734)
    public CourseDB() {
    }

}
